import request from '@/utils/request';
// 查看点位分组列表
export function pointGrouping(data) {
    return request({
        url: `/point_group/?size=${data.pageSize}&page=${data.pageNum}`,
        method: 'get',
    })
}
// 添加点位分组
export function createPointGrouping(data) {
    return request({
        url: `/point_group/`,
        method: 'post',
        data:data
    })
}
// 修改点位分组
export function updataPointGrouping(data) {
    return request({
        url: `/point_group/${data.id}/`,
        method: 'PUT',
         data:{
          title:data.title
        }
    })
}
// 查看点位分组详情
export function detailPointGrouping(id) {
    return request({
        url: `/point_group/${id}/`,
        method: 'get',
       
    })
}
// 删除点位分组
export function deletePointGrouping(id) {
    return request({
        url: `/point_group/${id}/`,
        method: 'delete',
       
    })
}

// 查看点位列表
export function selectPoint(data) {
    return request({
        url: `/point/?size=${data.pageSize}&page=${data.pageNum}`,
        method: 'get',
    })
}

// 查看点位详情
export function selectPointDetail(id) {
    return request({
        url: `/point/${id}/`,
        method: 'get',
    })
}